/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SelectCustomer.java
 *
 * Created on Feb 16, 2009, 1:47:30 PM
 */

package magis;

/**
 *
 * @author Brady
 */
public class SelectCustomer extends javax.swing.JFrame {

    /** Creates new form SelectCustomer */
    public SelectCustomer() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        customerList_pnl = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();
        custSearchGroup = new javax.swing.JPanel();
        salePrice_txt = new javax.swing.JTextField();
        addTradeIn_btn1 = new javax.swing.JButton();
        addTradeIn_btn = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        cancel_btn = new javax.swing.JButton();
        selectCustomer_btn = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        customerList_pnl.setBorder(javax.swing.BorderFactory.createTitledBorder("Customer Search"));
        customerList_pnl.setLayout(new java.awt.BorderLayout(5, 5));

        jList1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Michael Chambers", "Kellie Goff", "Lauren Goff" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList1.setPreferredSize(new java.awt.Dimension(168, 80));
        jScrollPane1.setViewportView(jList1);

        customerList_pnl.add(jScrollPane1, java.awt.BorderLayout.CENTER);

        salePrice_txt.setFont(salePrice_txt.getFont().deriveFont(salePrice_txt.getFont().getSize()-2f));
        salePrice_txt.setText("Customer Search");
        salePrice_txt.setPreferredSize(new java.awt.Dimension(125, 17));
        custSearchGroup.add(salePrice_txt);

        addTradeIn_btn1.setFont(new java.awt.Font("Tahoma", 0, 8));
        addTradeIn_btn1.setText("Find");
        addTradeIn_btn1.setAlignmentY(0.0F);
        addTradeIn_btn1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        custSearchGroup.add(addTradeIn_btn1);

        customerList_pnl.add(custSearchGroup, java.awt.BorderLayout.NORTH);

        addTradeIn_btn.setFont(new java.awt.Font("Tahoma", 0, 8));
        addTradeIn_btn.setText("+ Add Customer");
        addTradeIn_btn.setAlignmentY(0.0F);
        customerList_pnl.add(addTradeIn_btn, java.awt.BorderLayout.PAGE_END);

        getContentPane().add(customerList_pnl, java.awt.BorderLayout.CENTER);

        cancel_btn.setFont(new java.awt.Font("Tahoma", 0, 8));
        cancel_btn.setText("Cancel");
        jPanel1.add(cancel_btn);

        selectCustomer_btn.setFont(new java.awt.Font("Tahoma", 0, 8));
        selectCustomer_btn.setText("Select Customer");
        selectCustomer_btn.setAlignmentY(0.0F);
        selectCustomer_btn.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jPanel1.add(selectCustomer_btn);

        getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new SelectCustomer().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addTradeIn_btn;
    private javax.swing.JButton addTradeIn_btn1;
    private javax.swing.JButton cancel_btn;
    private javax.swing.JPanel custSearchGroup;
    private javax.swing.JPanel customerList_pnl;
    private javax.swing.JList jList1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField salePrice_txt;
    private javax.swing.JButton selectCustomer_btn;
    // End of variables declaration//GEN-END:variables

}
